using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SIMc
{
    public partial class EditProfileForm : Form
    {   
        Profile profil;

        public EditProfileForm()
        {
            InitializeComponent();
            
        }

        public void setProfile(Profile profilek){
            this.profil = profilek;
            //TB_account.Text = profilek.account;
            //TB_pass.Text = profilek.password;
            //TB_proxy.Text = profilek.proxy;
            //TB_realm.Text= profilek.realm;
            //TB_registrar.Text = profilek.registrar;
        }

        private void B_Apply_Click(object sender, EventArgs e)
        {
            //profil.account= TB_account.Text;
            //profil.password=  TB_pass.Text;
            //profil.proxy= TB_proxy.Text;
            //profil.realm= TB_realm.Text;
            //profil.registrar= TB_registrar.Text;
        }

        public Profile getProfile() {
            return profil;
        }

        private void InputPanel1_EnabledChanged(object sender, EventArgs e)
        {
            //SuspendLayout();
            if (inputPanel1.Enabled)
            {
                this.Height = inputPanel1.VisibleDesktop.Height - 3;

            }
            else
            {
                this.Height = inputPanel1.VisibleDesktop.Height - 30;
            }
            //ResumeLayout();
        }
    }
}